package com.mccken.springframework.beans.factory.config;

import com.mccken.springframework.beans.BeansException;

public interface BeanPostProcessor {

	/**
	 * 找Bean对象执行初始化之前，执行此方法
	 * 
	 * @param bean
	 * @param beanName
	 * @return
	 * @throws BeansException
	 */
	Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException;

	/**
	 * 在Bean对象执行初始化方法之后，执行此方法
	 * 
	 * @param bean
	 * @param beanName
	 * @return
	 * @throws BeansException
	 */
	Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException;
}
